package com.zs4sdk.activity.login;

import android.app.Activity;
import android.view.View;

/**
 * Created by Administrator on 2018/5/29.
 */

 class Zs4GameLoginProxyFt extends Zs4GameLoginProxy {
    public Zs4GameLoginProxyFt(Activity act, View v) {
        super(act, v);
    }

    protected void init(){
        mZs4GameOtherAccountLogin = new Zs4GameLoginAccountFt(mActivity,mMainView,myHandle);
    }

    protected void doOtherAccountLogin(){
        imgZs4GameBack.setVisibility(View.VISIBLE);
        mZs4GameTouristLogin.hideLogin();
        mZs4GameOtherAccountLogin.showLogin();
        loginStyle = OTHER_ACCOUNT;
    }

    public void onBackPressed(){
        switch (loginStyle){
            case TOURIST_LOGIN:
                break;
            case OTHER_ACCOUNT:
                loginStyle = TOURIST_LOGIN;
                imgZs4GameBack.setVisibility(View.GONE);
                mZs4GameOtherAccountLogin.hideLogin();
                mZs4GameTouristLogin.showLogin();
                break;
        }
    }
}
